.monaco-query-input-container {
    position: relative;
    border: 1px solid $input-border-color;
    border-right-color: transparent;
    // Match padding from the regular query input.
    padding-left: 0.75rem;
    background-color: var(--input-bg);
    display: flex;
    align-items: center;
    flex: 1 1 auto;
    min-width: 12rem;
    &:focus-within {
        border: 1px solid $input-focus-border-color;
        box-shadow: 0 0 0 2px rgba(28, 126, 214, 0.25);
    }

    .monaco-editor {
        // stylelint-disable-next-line selector-class-pattern
        .decorationsOverviewRuler {
            display: none;
        }
        .view-overlays {
            .current-line {
                border: none;
            }
        }
        .view-lines {
            border: none;
        }
        .monaco-editor-background {
            width: 100% !important;
            overflow: visible !important;
        }
        .monaco-editor-hover-content {
            padding: 0.25rem;
            .status-bar {
                display: none;
            }
        }

        // Override our :focus-visible style, which gets applied to the textarea
        .inputarea.focus-visible {
            box-shadow: none;
        }

        // Show keyboard tip to press Tab to complete
        .suggest-widget .monaco-list .monaco-list-row.focused::after {
            content: 'Tab';
            display: flex;
            align-items: center;
            border: 1px solid var(--text-muted);
            border-radius: 0.25rem;
            height: 1.25rem;
            margin-top: 0.375rem;
            // stylelint-disable-next-line declaration-property-unit-whitelist
            font-size: 0.65rem;
            line-height: 1;
            padding: 0.25rem 0.375rem;
            color: var(--text-muted);
            opacity: 0.75;
        }
    }

    &__toggle-container {
        padding-right: 0.5rem;
        padding-left: 0.35rem;
    }
}

.theme-dark {
    .monaco-icon-label.suggest-icon.customcolor::before {
        background-image: url() !important;
    }

    .monaco-icon-label.suggest-icon.color::before {
        background-image: url() !important;
    }
}

.theme-light {
    .monaco-icon-label.suggest-icon.customcolor::before {
        background-image: url() !important;
    }

    .monaco-icon-label.suggest-icon.color::before {
        background-image: url() !important;
    }
}
